<?php echo form_open('admin/edit_forum/'.$this->uri->segment(3));?>

<table width="60%"  border="0">

    <tr>
        <td>Category</td>
        <td>

            <select name="category">

                <?php foreach ($categories_list as $row) {  
               
                       if($row['url_title']==$category_title) {
                   ?>


                <option value="<?php echo $row['url_title']?>" <?php echo set_select('category', $row['url_title'],TRUE); ?>>
                        <?php echo $row['category_title'];?>
                </option>
                <?php } else {?>
                <option value="<?php echo $row['url_title']?>" <?php echo set_select('category', $row['url_title']); ?>>
                        <?php echo $row['category_title'];?>
                </option>
            <?php }} ?></select>
        </td>
    </tr>
    <tr>
        <td width="20%">Forum Title&nbsp;</td>
        <td >
            <input type="text" name="forum_title" value="<?php echo set_value('forum_title',$forum_title)?>" />
            <?php echo form_error('forum_title'); ?>
        </td>
    </tr>

    <tr>
        <td>Forum Desc&nbsp;</td>
        <td>
            <textarea name="forum_desc" id="textarea" cols="45" rows="5"><?php echo set_value('forum_desc',$forum_desc)?></textarea>
            <?php echo form_error('forum_desc'); ?>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td><input type="submit" name="save" id="save" value="Save" />
            <input type="reset" name="reset" id="reset" value="Reset" /></td>
    </tr>
</table>

<?php echo form_close()?>